<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Users.aspx.cs" Inherits="admin_Users" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h4>Users</h4>
    <hr />
    <table>
    <tr>
        <td style="vertical-align:top;">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" />
                <asp:HyperLinkField DataNavigateUrlFields="UserName" DataNavigateUrlFormatString="Users.aspx?UserName={0}"
                    Text="Edit" />
            </Columns>
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:arereConnectionString %>"
                SelectCommand="SELECT * FROM [vw_aspnet_Users]"></asp:SqlDataSource>
        </td>
        <td style="vertical-align:top;">
            <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" AutoGenerateRows="False" DataKeyNames="ApplicationId,LoweredUserName" DataSourceID="SqlDataSource2">
            <Fields>
                <asp:BoundField DataField="ApplicationId" HeaderText="ApplicationId" ReadOnly="True"
                    SortExpression="ApplicationId" />
                <asp:BoundField DataField="UserId" HeaderText="UserId" SortExpression="UserId" />
                <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" />
                <asp:BoundField DataField="LoweredUserName" HeaderText="LoweredUserName" ReadOnly="True"
                    SortExpression="LoweredUserName" />
                <asp:BoundField DataField="MobileAlias" HeaderText="MobileAlias" SortExpression="MobileAlias" />
                <asp:CheckBoxField DataField="IsAnonymous" HeaderText="IsAnonymous" SortExpression="IsAnonymous" />
                <asp:BoundField DataField="LastActivityDate" HeaderText="LastActivityDate" SortExpression="LastActivityDate" />
            </Fields>
            </asp:DetailsView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:arereConnectionString %>"
                SelectCommand="SELECT * FROM [vw_aspnet_Users] WHERE ([UserName] = @UserName)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="UserName" QueryStringField="UserName" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
        </td>
    </tr>
    </table>
</asp:Content>

